﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CustomFilters.WebPartCode;

namespace CustomFilters.UserControls
{
    public partial class ApplyFiltersTemplate : System.Web.UI.UserControl, IApplyFilters
    {
        protected void btnApplyFilters_Click(object sender, EventArgs e)
        {
            ApplyFilters(this, null);
        }

        #region IApplyFilters Members

        public bool SavePreferences
        {
            get { return cbSaveValues.Checked; }
        }

        public event EventHandler<EventArgs> ApplyFilters;

        #endregion
    }
}